package com.gtw.modules.api.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.gtw.modules.entity.TbAddress;
import com.gtw.modules.entity.TbCollection;

import java.util.List;
import java.util.Map;

/**
 * 地址表
 *
 * @author wuye
 * @email www.baidu.com
 * @date 2018-02-06 11:38:12
 */
public interface TbAddressService {

    Page<TbAddress> queryPageList(Page<TbAddress> pageUtil, Map<String, Object> map);

    TbAddress queryObject(Integer id);

    void save(TbAddress address);

    void update(TbAddress address);

    void delete(Integer id);

    List<TbAddress> findbyUid(String uid);

    /**
     * 将地址id转化为地址详情
     * @param addressid
     * @return
     */
    String fromIdToDetail(Integer addressid);
}
